package cn.edu.scau.cmi.liujianxun.abstractFactory.factory;

import cn.edu.scau.cmi.liujianxun.abstractFactory.insuranceAbstractClass.*;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String companyName) {
		switch (companyName) {
		case "中国人寿保险":
			return new PICCFactory();
		case "平安保险":
			return new PingAnFactory();
		default :
			return null;
		}
	}
	
	public abstract BodyInjur createBodyInjur();
	public abstract Collision createCollision();
	public abstract Comprehensive createComprehensive();
	public abstract PersonInjur createPersonInjur();
}
